package org.jeecg.modules.demo.zyExam.zypaperfillquestion.service.impl;

import org.jeecg.modules.demo.zyExam.zypaperfillquestion.entity.ZyPaperFillQuestion;
import org.jeecg.modules.demo.zyExam.zypaperfillquestion.mapper.ZyPaperFillQuestionMapper;
import org.jeecg.modules.demo.zyExam.zypaperfillquestion.service.IZyPaperFillQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 题库填空题
 * @Author: jeecg-boot
 * @Date:   2025-05-23
 * @Version: V1.0
 */
@Service
public class ZyPaperFillQuestionServiceImpl extends ServiceImpl<ZyPaperFillQuestionMapper, ZyPaperFillQuestion> implements IZyPaperFillQuestionService {
    @Autowired
    private ZyPaperFillQuestionMapper zyPaperFillQuestionMapper;
    @Override
    public List<String> findBySubject(String subject, Integer fillNumber) {
        return zyPaperFillQuestionMapper.findBySubject(subject,fillNumber);
    }

    @Override
    public List<ZyPaperFillQuestion> findByIdAndType(String paperCode) {
        return zyPaperFillQuestionMapper.findByIdAndType(paperCode);
    }
}
